import request from '@/router/axios';


// 左侧树
export const getLazyTree = (parentCode, params) => {
  return request({
    url: '/api/ManageRegion/GetRegionList',
    method: 'get',
    params: {
      ...params,
      parentCode
    }
  })
}

// 获取行政详情
export const getDetail = (code) => {
  return request({
    url: '/api/ManageRegion/GetRegionInfo',
    method: 'get',
    params: {
      code
    }
  })
}

// 删除
export const remove = (params) => {
  return request({
    url: '/api/ManageRegion/DelRegion',
    method: 'post',
    data:params,
    // params: {
    //   id,
    // }
  })
}

// 添加或修改
export const submit = (row) => {
  return request({
    url: '/api/ManageRegion/AddOrEditRegion',
    method: 'post',
    data: row
  })
}

